<%--
    Document   : index
    Created on : 22 janv. 2009, 22:57:04
    Author     : admin
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">

<%@page import="java.util.*"%>
<%@page import="AGMap.*"%>
<%@ page errorPage="erreur.jsp" import="java.sql.*"%>


<html>

<script src="soumettre.js" type="text/javascript"></script>
<script src=" http://maps.google.com/?file=api&amp;v=2.x&amp;key=ABQIAAAAzr2EBOXUKnm_jVnk0OJI7xSosDVG8KKPE1-m51RBrvYughuyMxQ-i1QfUnH94QxWIa6N4U6MouMmBA"
      type="text/javascript"></script>

<body id="body" onload="initialize()" onunload="GUnload()">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link href="Style.css" rel="stylesheet" type="text/css">

<title>API Google MAP</title>

   <div id="barre_tache">

   <div id="langue"><a href="#"><img src="images/fr.gif"></a>&nbsp;&nbsp;<a href="#"><img src="images/uk.gif"></a></div>

   <div id="admin">
   <form action="#" method="POST">
   Espace abonné &nbsp;&nbsp;&nbsp;<input type="text" name="login" value="Login" size="10">&nbsp;&nbsp;&nbsp;<input type="password" name="pwd" value="******" size="5">&nbsp;&nbsp;&nbsp;
   <input type="submit" value="OK" name="ok">

   </form>
   </div>
   </div>

    <div id="separation"></div>

     <div id="info_itineraire">
     <div id="titre"><img src="images/drapeau.png">&nbsp;Commerce</div>
         <form name="formulaire" onsubmit="montrerAdresse(document.formulaire.rue.value,document.formulaire.ville.value,document.formulaire.pays.value); return false;">

        <table>
        <tr>
            <th>Pays : </th><td><select name="pays">
                    <option>France</option>
                    <option>Angleterre</option>
                    <option>Etats-Unis</option>
            </select></td>
        </tr>
        <tr>
            <th>N° et rue : </th><td><input type="text" size="25" name="rue"></td>
        </tr>
        <tr>
            <th>Code postal,ville : </th><td><input type="text" size="25" name="ville" ></td>
        </tr>
        </table>
        <BR><input type="submit" value="Localiser">
        </form>
    </div>

    <div id="reponse">
        <% Enumeration champs = request.getParameterNames();
        if (champs.hasMoreElements())
        {
            String nom = request.getParameter("nom");
            String adresse = request.getParameter("adr");
            String lat = request.getParameter("lat");
            String lng = request.getParameter("lng");
            
           Float.parseFloat(lat),Float.parseFloat(lng));
            Commerce com=new Commerce(nom,adresse,p);
            com.ajouterCommerce(com);
        }

        /*Locale loc=new Locale("en","GB");
        ResourceBundle message=ResourceBundle.getBundle("locale",loc);
        out.println(message.getString("coucou"));*/
        %>


    </div>

    <div id="carte"></div>   

    <div id="piedpage">
        <div id="contact"><a href="mailto:Yves.Wolff@free.fr;fsoutarson@hotmail.fr">Contact</a></div>
    </div>

</body>
</html>

